SAP Interview Question

SQL to get Hierarchy