Pregunta de entrevista de Amazon

Problems on linked list and dynamic programming.