Bit Array Hackerrank Solution For Python Example For Loop