Pregunta de entrevista de Nagarro

print linked list in reverse order, make a priority queue