Bitwise Interview Question

Technical questions regarding python, js, oops