MARBLES code not working for all cases


this is not working for 4/5 cases but the logic seems to be correct …

Hi @imavneet
I would like to tell you that the approach that you have used is correct but the answer wont fit in 64 bit integer in this problem … so either you can use string multiplication or can directly submit this solution on spoj because in there answer will fit in 64 bit integer.