AKUNA CAPITAL interview question

Q: implement a function of round-robin algorithm with C++. Some functions have been provided.