All test cases wrong
hello @kartik-malik

put this if statement inside if statement.
also print output for each test case in separate line.
for that add cout<<"\n" after printing answer
hello @kartik-malik

put this if statement inside if statement.
also print output for each test case in separate line.
for that add cout<<"\n" after printing answer