GE interview question

What are your goals in this function?