Pregunta de entrevista de Smart Sight Innovations

question based on string format