I have tried this code but still it is not passing any test cases
@Nidhi_Alipuria hey nidhi you’re missing the endline after each test case as this program runs multiple time so you have to add a cout<<endl; after calling the print function.
@Nidhi_Alipuria hey nidhi you’re missing the endline after each test case as this program runs multiple time so you have to add a cout<<endl; after calling the print function.