Codility Binary Gap Problem

binary-coding-cartoon

Test Results: https://codility.com/demo/results/demo3VE8ZS-5KJ/