Binary Gap problem solution