UBS interview question

sorting algorithms, design patterns, oop