Pregunta de entrevista de Tata Consultancy Services

Projects, coding question based on string