Phenom interview question

Data structure and algorithms question