Pregunta de entrevista de Huawei Technologies

How would one go about writing a fraud detection algorithm?