Example 1: Input: nums = [2,7,11,15], target = 9
Output: [0,1]
Explanation: Because nums[0] + nums[1] == 9, we return [0, 1]. Understanding the problem: Per the example above, if we start with 2, and we want to reach 9 — we need to add 7 from the array. …