My code runs for the test case given in the question.
https://online.codingblocks.com/player/38447/content/18934/4821
My code runs for the test case given in the question.
https://online.codingblocks.com/player/38447/content/18934/4821