Response iQ interview question

Hierarchy structure in Database