Two Sum

You are given a list of financial transactions represented by integers, where each integer indicates a deposit (positive) or withdrawal (negative). Your task is to identify two distinct transactions whose combined value equals a specified financial goal. The solution must return the indices of these two transactions in the original list.

Examples
Input: [[2,7,11,15],9]
Output: [0,1]
Hints

Two Sum

You are given a list of financial transactions represented by integers, where each integer indicates a deposit (positive) or withdrawal (negative). Your task is to identify two distinct transactions whose combined value equals a specified financial goal. The solution must return the indices of these two transactions in the original list.