Pregunta de entrevista de Infosys

Write function and main for reversing the elements of an array in java.