title: Gcd Elements Given Range
signature: function gcdElementsGivenRange(n, m) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(n, m, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n, m),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(57, 57, 57);
    console.log(`TEST-0...${result}`);
  
    result = driver(22, 22, 22);
    console.log(`TEST-1...${result}`);
  
    result = driver(17, 17, 17);
    console.log(`TEST-2...${result}`);
  
    result = driver(74, 74, 74);
    console.log(`TEST-3...${result}`);
  
    result = driver(93, 22, 1);
    console.log(`TEST-4...${result}`);
  
    result = driver(56, 54, 1);
    console.log(`TEST-5...${result}`);
  
    result = driver(5, 33, 1);
    console.log(`TEST-6...${result}`);
  
    result = driver(5, 68, 1);
    console.log(`TEST-7...${result}`);
  
    result = driver(9, 75, 1);
    console.log(`TEST-8...${result}`);
  
    result = driver(98, 21, 1);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    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;
  }