public class Solution {

```
public int[] TwoSum(int[] nums, int target) {
int Target = target;
int [] Nums = nums;
int [] output = new int[2];
for(int i= 0;i<= Nums.Length;i++)
for(int j=Nums.Length;j>=0;j++)
{
int sum = Nums[i]+Nums[j];
if(sum == Target)
output[0] = i;
output[1] = j;
}
return output;
}
```

}