Jump Trading interview question

Algorithm problems. It is possible to encounter both medium and hard. I was given a hard and failed :(