IBM interview question

Questions was on looping