Reconcile Internal Positions Against a Custodian Holdings File
Last updated: November 29, 2026
Quick Overview
Given internal positions and a custodian's positions, each as account to security to quantity, report every break: securities missing on either side and quantity mismatches beyond a tolerance.
BlackRock
November 29, 20260
0
0 solved
Given internal positions and a custodian's positions, each as account to security to quantity, report every break: securities missing on either side and quantity mismatches beyond a tolerance.
Position reconciliation is a daily operations workflow on Aladdin, where the book of record must agree with what the custodian bank holds. An online assessment version checks that the candidate handles the union of keys on two levels and produces a clean, typed break list.
What the Interviewer Expects
- Iterates over the union of accounts and of securities, not just one side
- Classifies breaks into missing-internal, missing-custodian, and quantity mismatch
- Applies a tolerance for fractional quantities
- Produces deterministic sorted output
- Notes that a zero quantity and a missing row may need different treatment
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 add market-value tolerance so tiny breaks on cheap securities are ignored?
- The custodian uses CUSIP and you use an internal ID. How do you map them?
- How would you age breaks across days so ops sees which are new?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
Two nested maps account -> security -> quantity. Output tuples (account, security, break_type, internal_qty, custodian_qty). I will ask whether a security with quantity 0 on one side and absent on...
High-Level Design
Take the union of account keys. For each account take the union of security keys across both sides. Compare: absent internally, absent at the custodian, or both present with abs(a - b) > tol. Sort a...