Wolverine Trading interview question

How would you implement a program to notify when two stocks begin to reach a set price difference