Qualcomm interview question

Sort a linked list in place