UBS interview question

Risk Management, Quantitate methods questions, python