Tekion interview question

Develop a code for stock trades matching algorithm.