Masabi interview question

Code review and API design