Pergunta de entrevista da empresa Huawei Technologies

How would one go about writing a fraud detection algorithm?