Bit Array Hackerrank Solution Python Idle Shell