Johns Systems interview question

Finding the levels using initial level