Why is the Answer for this Given 13, length of Longest Subarray should be 22, i.e the whole array since no. of 1’s are 14 and no. of 0’s are 8.

A : [ 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1 ]

But the answer is given as 13. why?