Google Interview Question

How would you analyze this problem?