AKUNA CAPITAL Interview Question

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