Bit Array Hackerrank Solution Cpp Canvas