can u provide me with testcases of the problem?
Save your code on ide.codingblocks.com and share its link.