Pergunta de entrevista da empresa Amazon

Linked list problem and Dynamic Programming