Google interview question

Signed NDA but general simple algorithm questions.