UBS interview question

Typical quant questions - sorting algorithms, market trend analysis.