Google Interview Question

One question that I got was 2 sum