GE HealthCare interview question

LinkedList optimization