UBS interview question

Previous Experience, Theorical Aspects, Coding Exercise