Can't understand the sample output

why five is not in output . I understand that 5 covers 1 so 1 isn 't in output but how does 6 cover 5 it’s in same level as five


Please refer this.