title: Find Value Of Y Mod 2 Raised To Power X
signature: fun findValueOfYMod2RaisedToPowerX(y: Int, x: Int): Int {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(y: Int, x: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(y, x), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(57, 76, 57)
      println("TEST-0...${result}")
      
      result = driver(80, 46, 80)
      println("TEST-1...${result}")
      
      result = driver(84, 96, 84)
      println("TEST-2...${result}")
      
      result = driver(35, 16, 35)
      println("TEST-3...${result}")
      
      result = driver(3, 84, 3)
      println("TEST-4...${result}")
      
      result = driver(42, 79, 42)
      println("TEST-5...${result}")
      
      result = driver(7, 2, 3)
      println("TEST-6...${result}")
      
      result = driver(99, 83, 99)
      println("TEST-7...${result}")
      
      result = driver(13, 61, 13)
      println("TEST-8...${result}")
      
      result = driver(44, 8, 44)
      println("TEST-9...${result}")
      
          
  }
  
  main()
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 ) );
  }