DiUS Computing interview question

Principles to designing a good API.