Pergunta de entrevista da empresa MongoDB

Write an algorithm to insert a node into a sorted linked list.