Given two hexadecimal numbers find if they can be consecutive in gray code