Meta Interview Question

System design question regarding pairs trading