A odd number have LSB 1 in binary
A even number have LSB 0 in binary
Right shift by x bits means we are dividing binary's decimal equivalent with 2^x
Bitwise AND with 1 gives 1 if AND WITH odd number
Bitwise AND with 1 gives 0 if AND with even number