UKG interview question

techincal question that was Reverse a linked list