Pergunta de entrevista da empresa Deloitte

DSA question was based on Array where I had to reverse each element and print the maximum difference with original numbers.