IBM interview question

Nothing was that difficult