Amazon Interview Question

Study datastructures such as trees and arrays.