Invesco interview question

Using R/C++ write an arbitrage trading strategy. Avoid using loops .