title: Fast Multiplication Method Without Using Multiplication Operator Russian Peasants Algorithm
signature: class Solution {
  
      public Integer fastMultiplicationMethodWithoutUsingMultiplicationOperatorRussianPeasantsAlgorithm(Integer a, Integer b) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer a, Integer b, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(a, b,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(4, 33, 132);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(36, 67, 2412);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(65, 52, 3380);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(55, 37, 2035);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(35, 76, 2660);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(69, 98, 6762);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(84, 62, 5208);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(5, 80, 400);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(15, 36, 540);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(67, 84, 5628);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer a, Integer b, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(a, b),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
source_py: def fast_multiplication_method_without_using_multiplication_operator_russian_peasants_algorithm(a, b):
      res = 0
      while (b > 0):
          if (b & 1):
              res = (res + a)
          a = (a << 1)
          b = (b >> 1)
      return res
source_cpp: unsigned int fast_multiplication_method_without_using_multiplication_operator_russian_peasants_algorithm(unsigned int a, unsigned int b) {
    int res = 0;
    while ( b > 0 ) {
      if ( b & 1 ) res = res + a;
      a = a << 1;
      b = b >> 1;
    }
    return res;
  }