GE interview question

programming assignment