Model answer
Let tail->next be the head. Front insertion links the new node after tail without moving tail; rear insertion does the same and then advances tail to the new node. The first node points to itself, so both operations are O(1).
Use the key terms, then explain the reasoning.