Domanda di colloquio di Meta

An algorithms question involving recursion on lists.