Pergunta de entrevista da empresa Capital One

Remove node with value larger than a certain value in linked list