Pregunta de entrevista de Tata Consultancy Services

Given a problem statement and asked to write different solution approaches