Pergunta de entrevista da empresa Amazon

Problems on linked list and dynamic programming.