Pergunta de entrevista da empresa SimCentric Technologies

Write an algorithm to reverse an array without using another array(They wanted an optimal solution)