Apple interview question

a parsing tree