Pergunta de entrevista da empresa IBM

the time limit per ques. in 1st round was tricky.