Pergunta de entrevista da empresa Walmart

How will you convert a heap into a doubly linked list?