title: Find Unit Digit X Raised Power Y
signature: findUnitDigitXRaisedPowerY(x, y) {
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(x, y, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(x, y), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          33, 55, 
          7)
      }");
  
      print("TEST-1...${driver(
          95, 7, 
          5)
      }");
  
      print("TEST-2...${driver(
          21, 63, 
          1)
      }");
  
      print("TEST-3...${driver(
          3, 62, 
          9)
      }");
  
      print("TEST-4...${driver(
          40, 53, 
          0)
      }");
  
      print("TEST-5...${driver(
          64, 24, 
          6)
      }");
  
      print("TEST-6...${driver(
          17, 23, 
          3)
      }");
  
      print("TEST-7...${driver(
          58, 74, 
          4)
      }");
  
      print("TEST-8...${driver(
          44, 13, 
          4)
      }");
  
      print("TEST-9...${driver(
          27, 54, 
          9)
      }");
  
      return 0;
  }
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;
  }