Google interview question

How would you analyze this problem?