Pergunta de entrevista da empresa IBM

No interview question, all instruction based