Domanda di colloquio di Google

Coding question about linked lists and dynamic programming