IXL Learning Interview Question

Sort a nasted list in efficient way