UBS interview question

Object oriented programming and basic DSA