Given an array of integers and a target, return indices of two numbers such that they add up to the target.
nums = array of integers, target = integer
Indices of two numbers (0-based) whose sum equals target
Example 1:
Input:
nums = [2,7,11,15] target = 9
Output:
[0,1]
Explanation:
nums[0] + nums[1] = 9.