Nivida Interview Question

2 sum other leedcode problem. Resume problem.