Hey Miguel,

I may be mistaken, but this code will not work at all.... you should be doing-- and incrementing the value at ctr[i-1] after..