Tcs Coding Questions 2021 Now

Example: Input - [1, 2, 3, 4, 5], target sum - 7, Output - 2