Sumit up recursion


sumit up two test cases getting wrong answers

Hello @Faizan-Ali-1395131367301898

You cannot sort the vector “vec” like that
Suppose the vector “vec” contains two string:-
2 58
10 50

Your code will produce the output
10 50
2 58

while the correct output would be
2 58
10 50