Pergunta de entrevista da empresa Digit Insurance

reverse a string in online compiler and run the code