IBM interview question

Nothing too tricky