@Mk Utkarsh
first two conditions are on string 'w' and
"at least as many as 0's as 1's" property is for prefixes of the obtained string 'w'.
w=0011
a)even in length
b)equal no. of 0's and 1's
c) checking prefixes of 0011
{},{0},{00},{001},{0011}
All prefixes contain at least as many 0's as 1's.
w=0011 is a valid string.