Cogo Labs interview question

Nothing too crazy, just basic CS questions.