Identify trees, lists, and array search costs | Meta Interview Question