IBM interview question

An algorithm coding problem