SP Group interview question

Implement a simple API