Fortinet interview question

Create this API in Node