Pergunta de entrevista da empresa Vedak

reverse a array with some logic and other dsa question