AKUNA CAPITAL interview question

Given a stock strategy, write code to simulate the result.