Please explain how this function is returning two values. It is taking an array and returning the two numbers from the array whose sum is equal to target sum.
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
int a = 0;
int b = 0;
for (int i=0; i<nums.size()-1; i++)
{
for (int j=i+1; j<nums.size(); j++)
{
if (nums[i] + nums[j] == target)
{
a = i;
b = j;
}
}
}
return {a, b};
}
};