Pregunta de entrevista de PTC

How to reverse an array! Another problem statement to design application.