Pregunta de entrevista de Vedak

reverse a array with some logic and other dsa question