title: Check If A Number Is Jumbled Or Not
signature: checkIfANumberIsJumbledOrNot :: Integer -> Bool
  checkIfANumberIsJumbledOrNot num = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Bool -> Bool -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: Integer -> Bool -> String
  driver num expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME num) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver (67) (True) )
  
      printf "TEST-1...%s\n" (driver (77) (True) )
  
      printf "TEST-2...%s\n" (driver (35) (False) )
  
      printf "TEST-3...%s\n" (driver (79) (False) )
  
      printf "TEST-4...%s\n" (driver (45) (True) )
  
      printf "TEST-5...%s\n" (driver (22) (True) )
  
      printf "TEST-6...%s\n" (driver (68) (False) )
  
      printf "TEST-7...%s\n" (driver (17) (False) )
  
      printf "TEST-8...%s\n" (driver (5) (True) )
  
      printf "TEST-9...%s\n" (driver (85) (False) )
  
source_py: def check_if_a_number_is_jumbled_or_not(num):
      if ((num // 10) == 0):
          return True
      while (num != 0):
          if ((num // 10) == 0):
              return True
          digit1 = (num % 10)
          digit2 = ((num // 10) % 10)
          if (abs((digit2 - digit1)) > 1):
              return False
          num = (num // 10)
      return True
source_cpp: bool check_if_a_number_is_jumbled_or_not(int num) {
    if ( num / 10 == 0 ) return true;
    while ( num != 0 ) {
      if ( num / 10 == 0 ) return true;
      int digit1 = num % 10;
      int digit2 = ( num / 10 ) % 10;
      if ( abs ( digit2 - digit1 ) > 1 ) return false;
      num = num / 10;
    }
    return true;
  }