title: Check If A Number Is Jumbled Or Not
signature: class Solution {
  
      public Boolean checkIfANumberIsJumbledOrNot(Integer num) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer num, Boolean expected){
          try{
              Driver driver = new Driver();
              if (driver.run(num,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(67, true);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(77, true);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(35, false);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(79, false);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(45, true);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(22, true);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(68, false);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(17, false);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(5, true);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(85, false);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer num, Boolean expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(num),expected);
      }
      
      public boolean validateSolution(Boolean actual, Boolean expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
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;
  }