Slice interview question

Create an API for the coding project