Bit Array Hackerrank Solutions Javascript Interview