Google Interview Question

asked me to solve threesum