Bending Spoons Interview Question

Implement bitwise operation on numbers expressed in base 3