Pregunta de entrevista de Digit Insurance

reverse a string in online compiler and run the code