Pergunta de entrevista da empresa IBM

It was an online coding round.