Pregunta de entrevista de Digit Insurance

reverse an array without using a method. even streams are not allowed