title: Add Two Numbers Without Using Arithmetic Operators
signature: def add_two_numbers_without_using_arithmetic_operators(x, y):
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;
  }
question_info.test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return actual == expected
  
  def driver(x, y, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              x, y),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(56, 60, 116)
      print(f"TEST-0...{result}")
  
      result = driver(17, 44, 61)
      print(f"TEST-1...{result}")
  
      result = driver(73, 96, 169)
      print(f"TEST-2...{result}")
  
      result = driver(75, 3, 78)
      print(f"TEST-3...{result}")
  
      result = driver(27, 54, 81)
      print(f"TEST-4...{result}")
  
      result = driver(61, 1, 62)
      print(f"TEST-5...{result}")
  
      result = driver(65, 63, 128)
      print(f"TEST-6...{result}")
  
      result = driver(22, 19, 41)
      print(f"TEST-7...{result}")
  
      result = driver(61, 9, 70)
      print(f"TEST-8...{result}")
  
      result = driver(97, 23, 120)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.entry_fn_name: add_two_numbers_without_using_arithmetic_operators
question_info.test_list: [{"idx": 0, "outputs": 116, "inputs": {"x": 56, "y": 60}}, {"idx": 1, "outputs": 61, "inputs": {"x": 17, "y": 44}}, {"idx": 2, "outputs": 169, "inputs": {"x": 73, "y": 96}}, {"idx": 3, "outputs": 78, "inputs": {"x": 75, "y": 3}}, {"idx": 4, "outputs": 81, "inputs": {"x": 27, "y": 54}}, {"idx": 5, "outputs": 62, "inputs": {"x": 61, "y": 1}}, {"idx": 6, "outputs": 128, "inputs": {"x": 65, "y": 63}}, {"idx": 7, "outputs": 41, "inputs": {"x": 22, "y": 19}}, {"idx": 8, "outputs": 70, "inputs": {"x": 61, "y": 9}}, {"idx": 9, "outputs": 120, "inputs": {"x": 97, "y": 23}}]
question_info.entry_cls_name: Solution