Phenom Interview Question

Data structure and algorithms question