Bitwise interview question

Technical questions regarding python, js, oops