DR Studios interview question

How would you handle dependencies to UI?