failling one test case https://ide.codingblocks.com/s/301370
I have edited your code… Try to submit now…