title: Gcd Elements Given Range
signature: function gcd_elements_given_range(n, m)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(n, m, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(n, m), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(57, 57, 57);
      @printf("TEST-0...%s\n",result);
      
      result = driver(22, 22, 22);
      @printf("TEST-1...%s\n",result);
      
      result = driver(17, 17, 17);
      @printf("TEST-2...%s\n",result);
      
      result = driver(74, 74, 74);
      @printf("TEST-3...%s\n",result);
      
      result = driver(93, 22, 1);
      @printf("TEST-4...%s\n",result);
      
      result = driver(56, 54, 1);
      @printf("TEST-5...%s\n",result);
      
      result = driver(5, 33, 1);
      @printf("TEST-6...%s\n",result);
      
      result = driver(5, 68, 1);
      @printf("TEST-7...%s\n",result);
      
      result = driver(9, 75, 1);
      @printf("TEST-8...%s\n",result);
      
      result = driver(98, 21, 1);
      @printf("TEST-9...%s\n",result);
      
  end
  
  main()
source_py: def gcd_elements_given_range(n, m):
      return (n if (n == m) else 1)
source_cpp: int gcd_elements_given_range(int n, int m) {
    return ( n == m ) ? n : 1;
  }