This is 2 Sum, you should be able to solve this asleep off of a case of beers… No notes required. There are many twists you can do on this question though like Leetcode - Subarray Sum Equals K.