Pregunta de entrevista de Ness Digital Engineering

oops concept, asked to write program of reverse string