IBM interview question

they asked me to do a coding problem