title: Find Unit Digit X Raised Power Y
signature: def findUnitDigitXRaisedPowerY(x: Int, y: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(x: Int, y: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(x, y),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        33, 55, 
        7    
      )}")   
  
  
      println(s"TEST-1...${driver(
        95, 7, 
        5    
      )}")   
  
  
      println(s"TEST-2...${driver(
        21, 63, 
        1    
      )}")   
  
  
      println(s"TEST-3...${driver(
        3, 62, 
        9    
      )}")   
  
  
      println(s"TEST-4...${driver(
        40, 53, 
        0    
      )}")   
  
  
      println(s"TEST-5...${driver(
        64, 24, 
        6    
      )}")   
  
  
      println(s"TEST-6...${driver(
        17, 23, 
        3    
      )}")   
  
  
      println(s"TEST-7...${driver(
        58, 74, 
        4    
      )}")   
  
  
      println(s"TEST-8...${driver(
        44, 13, 
        4    
      )}")   
  
  
      println(s"TEST-9...${driver(
        27, 54, 
        9    
      )}")   
  
  }
  
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;
  }