title: Find Value Of Y Mod 2 Raised To Power X
signature: findValueOfYMod2RaisedToPowerX(y, x) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(y, x, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(y, x), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          57, 76, 
          57)
      }");
  
      print("TEST-1...${driver(
          80, 46, 
          80)
      }");
  
      print("TEST-2...${driver(
          84, 96, 
          84)
      }");
  
      print("TEST-3...${driver(
          35, 16, 
          35)
      }");
  
      print("TEST-4...${driver(
          3, 84, 
          3)
      }");
  
      print("TEST-5...${driver(
          42, 79, 
          42)
      }");
  
      print("TEST-6...${driver(
          7, 2, 
          3)
      }");
  
      print("TEST-7...${driver(
          99, 83, 
          99)
      }");
  
      print("TEST-8...${driver(
          13, 61, 
          13)
      }");
  
      print("TEST-9...${driver(
          44, 8, 
          44)
      }");
  
      return 0;
  }
source_py: def find_value_of_y_mod_2_raised_to_power_x(y, x):
      return (y % pow(2, x))
source_cpp: long long int find_value_of_y_mod_2_raised_to_power_x(long long int y, long long int x) {
    if ( log2 ( y ) < x ) return y;
    if ( x > 63 ) return y;
    return ( y % ( 1 << x ) );
  }