MathWorks interview question

Pointers, linked list, binary tree, time complexity