Not able to clear all the test cases. Here is my code link
https://ide.codingblocks.com/s/389316.
1-count Problem
Hey @nikhil015
Mentioned the changes in comments https://ide.codingblocks.com/s/389386
Basically u have to keep a variable to store starting position as well