Sigma Computing interview question

Build a class for api