Pick The Next Control That Advances Multiple Frameworks Most

Last updated: November 29, 2026

Quick Overview

Each framework (SOC 2, ISO 27001) has requirements that are met only when all of their mapped controls are implemented, and controls are shared across frameworks. Given the implemented controls, report readiness per framework and the one missing control that would complete the most requirements.

Vanta
Coding & Algorithms
Software Engineer
Vanta
November 29, 2026
Software Engineer
Phone Screen
Coding & Algorithms
Medium

0

0

0 solved


Each framework (SOC 2, ISO 27001) has requirements that are met only when all of their mapped controls are implemented, and controls are shared across frameworks. Given the implemented controls, report readiness per framework and the one missing control that would complete the most requirements.

Vanta's value for multi-framework customers is that one control, such as centralized logging, counts toward SOC 2 and ISO 27001 at once. This question checks set reasoning over a many-to-many mapping and the ability to turn it into a concrete recommendation a customer can act on.

What the Interviewer Expects
  • Computes per-framework readiness as the share of fully satisfied requirements
  • Identifies requirements blocked by exactly one missing control
  • Aggregates across frameworks so shared controls get credit for both
  • Breaks ties deterministically
  • Explains why greedy one-step is not optimal for multi-step planning
Key Topics to Cover
sets
many-to-many mapping
greedy choice
set cover
aggregation
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • How would you recommend the best set of k controls? Is it still greedy?
  • Weight requirements by audit risk or by the customer's target framework deadline.
  • How would you keep this fast as a customer toggles controls in the UI?
  • Some requirements accept alternative controls (any of). How does the model change?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice DSA Problems
Sample Answer
Requirements

Input: {framework: {requirement: set(controls)}} and the set of implemented controls. Output: readiness percent per framework, and the single control whose implementation would newly complete the mo...

High-Level Design

For each requirement compute missing = controls - implemented. Empty means met. Exactly one missing control means that control alone would unlock it, so append (framework, requirement) under that ...


Submit Your Answer
Markdown supported

Related Questions