Interesting encoding

One of the test case is not passing please check

Hey @avinashmallik2017 try this a an input 122012 and you will get an output of 7 instead of 4. Try to correct it :blush: