title: Find Unit Digit X Raised Power Y
signature: fun findUnitDigitXRaisedPowerY(x: Int, y: 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(x: Int, y: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(x, y), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(33, 55, 7)
      println("TEST-0...${result}")
      
      result = driver(95, 7, 5)
      println("TEST-1...${result}")
      
      result = driver(21, 63, 1)
      println("TEST-2...${result}")
      
      result = driver(3, 62, 9)
      println("TEST-3...${result}")
      
      result = driver(40, 53, 0)
      println("TEST-4...${result}")
      
      result = driver(64, 24, 6)
      println("TEST-5...${result}")
      
      result = driver(17, 23, 3)
      println("TEST-6...${result}")
      
      result = driver(58, 74, 4)
      println("TEST-7...${result}")
      
      result = driver(44, 13, 4)
      println("TEST-8...${result}")
      
      result = driver(27, 54, 9)
      println("TEST-9...${result}")
      
          
  }
  
  main()
source_py: def find_unit_digit_x_raised_power_y(x, y):
      res = 1
      for i in range(y):
          res = ((res * x) % 10)
      return res
source_cpp: int find_unit_digit_x_raised_power_y(int x, int y) {
    int res = 1;
    for ( int i = 0;
    i < y;
    i ++ ) res = ( res * x ) % 10;
    return res;
  }