Pergunta de entrevista da empresa Tata Consultancy Services

To write an algorithm for a given situation.