Cloud for Good interview question

Explain the exercise in detail