UBS interview question

How would you design your own graph database?