Pergunta de entrevista da empresa Dynata

How to print an array in reverse order without using any predefined function?