Swissquote interview question

How to backtest a trading strategy