Amazon Interview Question

merge K linked list in limited space