we special charactersthe character represent bit 0the second character represent bit 10 11given binary array bit end 0 return true character onebit character Example 1input bit 100output trueexplanation the way decode twobit character onebit characterSo character onebit characterexample 2input bit 1110output falseexplanation the way decode twobit character twobit characterSo character onebit character Constraints1 bitslength 1000bitsi 0 1