IBM Interview Question

Sort intervals based on end time.