Google Interview Question

The question for (5.d) was the most difficult one.