function twoSum(nums, target) {
for (let i = 0; i < 6; i++) {
for (let j = i + 1; j <= 6; j++) {
if (nums[i] + nums[j] == target) {
console.log('[', i, ', ', j, ']');
}
}
}
}
const nums = [2, 3, 4, 5];
const target = 7;
console.log(twoSum(nums, target));