Bit Array Hackerrank Solution Python Code