Company: Stripe_13thjuly

Difficulty: medium

Problem Statement

Stripe Merchant Fraud Risk Scoring Description The fraud detection team at Stripe aims to reduce merchant fraud risk with minimal impact on good merchants through machine learning. To provide initial data for training this model, you are tasked with developing a system to assess the fraud risk associated with transactions made to various merchants. You are given transactions_list (a list of transactions for a certain day), merchants_list (a list of merchants), and rules_list (a list of rules corresponding to each transaction). A transaction denotes a payment made by a customer to a merchant. Each merchant in merchants_list is assigned a base_score . Your task is to assign each merchant a fraud score based on their transaction(s), where each transaction can have different risk factors based on certain categories (e.g., transaction amount, frequency of similar transactions, user activity). To do this: Initialize a merchant's current_score as their base_score . Then update each merch

More Stripe_13thjuly OA questionsInterview experiences