Robin AI interview question

I was asked to build a simple API endpoint