Solution for BinaryGap