UBS interview question

Trigonometry