IBM interview question

testing iq and problem solving skills