Why is expected output 0 for this?
Testcase: V515V 5793K 627 23815945269 1 1249794L 631 8755 7
because it is told in question that if you have garbage value before number than return 0.
because it is told in question that if you have garbage value before number than return 0.