Traveloka interview question

How do you create a spike detection algorithm?