Your solution does not fail for 11. It fails for 493193 because it returns 11, instead of 2.
493193
Loading collection data...
Your solution does not fail for 11. It fails for
493193
because it returns 11, instead of 2.