Pergunta de entrevista da empresa Knight Capital

Reorder a linked list in the order returned by a function. The function is passed as a function pointer.