Arista Networks interview question

Question on pointers, linked lists, recursion and dynamic programming