First bit manipulation program

Check if a bit is set