TransMarket Group Interview Question

Asked me to create a simple trading algorithm