Traveloka interview question

How to implement spike detection?