Von neumn loves binry

in this problem, how will the loop for giving space works?
and form where to where?