to check for numbers below ten lakhs with test cases