Zomentum interview question

2 sum and 3 sum