Nivida interview question

2 sum other leedcode problem. Resume problem.