UBS interview question

I have asked for data structure and solve a problem with data structure.