title: Add Two Numbers Without Using Arithmetic Operators
signature: pub fn add_two_numbers_without_using_arithmetic_operators(x: i32, y: i32) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(x: i32, y: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(x, y), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        56, 60, 
        116
      ));
      
      println!("TEST-1...{}", driver(
        17, 44, 
        61
      ));
      
      println!("TEST-2...{}", driver(
        73, 96, 
        169
      ));
      
      println!("TEST-3...{}", driver(
        75, 3, 
        78
      ));
      
      println!("TEST-4...{}", driver(
        27, 54, 
        81
      ));
      
      println!("TEST-5...{}", driver(
        61, 1, 
        62
      ));
      
      println!("TEST-6...{}", driver(
        65, 63, 
        128
      ));
      
      println!("TEST-7...{}", driver(
        22, 19, 
        41
      ));
      
      println!("TEST-8...{}", driver(
        61, 9, 
        70
      ));
      
      println!("TEST-9...{}", driver(
        97, 23, 
        120
      ));
      
  }
source_py: def add_two_numbers_without_using_arithmetic_operators(x, y):
      while (y != 0):
          carry = (x & y)
          x = (x ^ y)
          y = (carry << 1)
      return x
source_cpp: int add_two_numbers_without_using_arithmetic_operators(int x, int y) {
    while ( y != 0 ) {
      int carry = x & y;
      x = x ^ y;
      y = carry << 1;
    }
    return x;
  }