ScienceLogic interview question

On the spot programming drill.