Level: Junior-Level
Round: Phone Screen · Type: Live Coding · Difficulty: 6/10 · Duration: 60 min · Interviewer: Neutral
Topics: Algorithms, Data Structures, Rule-Based Systems
Location: San Francisco Bay Area
Interview date: 2026-01-15
I had a coding interview focused on calculating a merchant's fraud score based on transaction data and a set of rules.
The coding question involved calculating a fraud score for merchants based on their transactions and a set of rules. The rules had different weights. The transactions included timestamp information. I had to calculate a score based on these rules. I think it could be done in around 50 lines of code.
Input:
transaction = ["merchant1,980,customer1,15", .....] rules = ["1500,2,8,12", .....] merchants = ['merchant1, 20", .....]
Output:
["merchant1,50", .... ]