Pergunta de entrevista da empresa IBM

How was the difficulty of this assignment