Arista Networks Interview Question

Question on pointers, linked lists, recursion and dynamic programming