Nokia interview question

Good