TransMarket Group interview question

Asked me to create a simple trading algorithm