Pregunta de entrevista de Tata Consultancy Services

To write an algorithm for a given situation.