Detect Synthetic Identity Rings From Shared Application Attributes
Last updated: November 29, 2026
Quick Overview
Given a batch of loan applications each with an SSN and optional phone, email, device ID and bank account, group applications that are connected through any shared attribute (transitively) and return the groups that span at least k distinct SSNs, while ignoring attribute values shared by so many applications that they are clearly not personal.
OneMain Financial
November 29, 20260
0
0 solved
Given a batch of loan applications each with an SSN and optional phone, email, device ID and bank account, group applications that are connected through any shared attribute (transitively) and return the groups that span at least k distinct SSNs, while ignoring attribute values shared by so many applications that they are clearly not personal.
Online personal lending attracts synthetic identity and first-party fraud, and OneMain's instant decisioning needs to spot rings where many identities share one phone, device or deposit account. The onsite coding round checks whether you reach for union-find, normalize keys, and think about false links from shared values like a branch phone number.
What the Interviewer Expects
- Model applications as nodes linked through shared attribute values
- Use union-find (or BFS over a bipartite graph) for near-linear grouping
- Normalize values (trim, lowercase) so trivial formatting differences still link
- Skip hub values above a fan-out cap to avoid one shared phone merging everything
- Count distinct SSNs per group, not applications, since one person may reapply
Key Topics to Cover
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
- How would you make this incremental so each new application is checked in milliseconds at decision time?
- A legitimate family shares a phone and bank account. How do you reduce false positives?
- How would you weight attributes differently (bank account links are stronger than email domain)?
- How would you explain a decline driven by this signal for adverse action purposes?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
Input: a list of application dicts with app_id, ssn and optional link fields. Two applications are connected if they share a normalized value of the same field, and connectivity is transitive. Output:...
High-Level Design
Build an inverted index from (field, normalized value) to application indexes. For each key with fan-out at or below the cap, union all its applications with the first one. Then bucket applications by...
Submit Your Answer
OneMain Financial Software Engineer Interview Guide
Interview process, tips, and preparation timeline