Google New Grad Test 2014

This is the solution of Google New Grad Test 2014 round1.