Ad
  • Custom User Avatar

    Hi, just to let you know that this solution is not quite exact, it is failing for cases like:

    "5*196?1=98??5" => 0 is working here, this code returns -1 due to the first if statement.

    "?86422-?83181=3241" => 0 is not working here, but it's the returned return by this code, because it does not satisfy the following rule: 'No number will begin with a 0 unless the number itself is 0'.