What if there is no pair in the array than what we need to print. TC 0 is failing all rest test cases passed.
Array Target Sum pairs
There is nothing given in the question for that. So you can assume there is always atleast one possible pair.
Please save your code on ide.codingblocks.com and then share its link.