Fuzzy Logix interview question

Question based on linked list