UC Santa Barbara interview question

Describe the relationship between the operating system, user interface/software/programs, and the code behind them.