title: Compute Modulus Division By A Power Of 2 Number
signature: computeModulusDivisionByAPowerOf2Number(n, d) {
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(n, d, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n, d), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          54, 59, 
          50)
      }");
  
      print("TEST-1...${driver(
          39, 84, 
          3)
      }");
  
      print("TEST-2...${driver(
          35, 81, 
          0)
      }");
  
      print("TEST-3...${driver(
          9, 60, 
          9)
      }");
  
      print("TEST-4...${driver(
          62, 68, 
          2)
      }");
  
      print("TEST-5...${driver(
          16, 16, 
          0)
      }");
  
      print("TEST-6...${driver(
          93, 96, 
          93)
      }");
  
      print("TEST-7...${driver(
          32, 38, 
          32)
      }");
  
      print("TEST-8...${driver(
          39, 62, 
          37)
      }");
  
      print("TEST-9...${driver(
          63, 16, 
          15)
      }");
  
      return 0;
  }
source_py: def compute_modulus_division_by_a_power_of_2_number(n, d):
      return (n & (d - 1))
source_cpp: unsigned int compute_modulus_division_by_a_power_of_2_number(unsigned int n, unsigned int d) {
    return ( n & ( d - 1 ) );
  }