Meta interview question

System design question regarding pairs trading