Arm interview question

Python coding using bitwise operators