I think I have the correct solution to this problem. Please suggest any changes. I think I am getting the wrong answer because of formatting.
please help
code: https://ide.codingblocks.com/s/185851
Class assignment
hey @SWIFTY while printing answer after # instead of n, number of testcase would come. Here is link of code with the same done