Google interview question

asked me to solve threesum