Domanda di colloquio di IBM

How was the difficulty of this assignment