README
Find the longest gap
A binary gap within a positive number num is any sequence of
consecutive zeros that is surrounded by ones at both ends in the
binary representation of num.
For example:
9has binary representation1001and contains a binary gap of length2.
529has binary representation1000010001and contains two binary gaps: one of length4and one of length3.
20has binary representation10100and contains one binary gap of length1.
15has binary representation1111and has 0 binary gaps.
Write function gap(num) that, given a positive num, returns
the length of its longest binary gap.
The function should return 0 if num doesn’t contain a binary gap.