Fortinet interview question

Linked list related question but different from leetcode