Alarm.com interview question

Remove elements above a certain value from a linked list