MathWorks Interview Question

Pointers, linked list, binary tree, time complexity