Johns Systems Interview Question

Finding the levels using initial level