Working fine on my local IDE
test cases are failing
- if n<m no need to return 0, it is still possible as some students don’t need to read any book
- Inside the test cases loop you are doing return 0;, which will stop it after first iteration.
- Also remember to print new line after every test case.
Please mark the doubt as resolved if you understood this now.