BNP Paribas interview question

Build Rest API for given scenario