IBM interview question

Problem Solving questions using any language.