UBS interview question

technical question