GE interview question

programming basics