Traveloka Interview Question

How to implement spike detection?