Solve Exercise 2-6: setbits()