IBM interview question

Unexpected ease