Only test case 0,1 are passing

code-https://ide.codingblocks.com/s/294793