Simulate return-weighted rebalancing strategy | Optiver Interview Question