Bit Array Hackerrank Solutions Sql