5.3 Given a positive integer, print the next smallest and the next largest number that have the same number of 1 bits in their binary representation.
5.3 Given a positive integer, print the next smallest and the next largest number that have the same number of 1 bits in their binary representation.