BOOLAHUBBOO B Before O Count

Anagrams with B before O is a medium quant interview question on Combinatorics, reported to have been seen at Old mission.

Difficulty Medium Topic Combinatorics Reported at Old mission

MyQuantPartner is not affiliated with, endorsed by, or sponsored by these companies, and all trademarks belong to their respective owners.

This combinatorics question is about counting constrained anagrams when some letters are repeated and must respect a specific ordering rule. Instead of plain multinomial counting, you have to incorporate an extra structural constraint on how two types of identical letters can appear relative to each other. It sits at the intersection of classical counting with repetitions and positional restrictions, a common theme in quant prep and math-heavy interviews.

It trains your ability to recognize when an ordering constraint turns a permutation question into a structured placement problem. You practice thinking in terms of blocks, conditional structure, and how symmetry between identical objects is broken by extra rules. It also sharpens algebraic counting skills and combinatorial modeling under constraints.

This matters for quant interviews because many probability and counting problems at top firms reduce to structured permutations with conditions. Mastering these patterns builds the foundation for tackling path counting, combinatorial probability, and state-space sizing questions that show up in trading, research, and risk interviews on platforms like MyQuantPartner and in real quant interviews.

What it tests

When a subset of identical objects in a permutation problem must appear in a fixed relative order (such as all of one letter before any of another), the problem reduces to partitioning the available positions into ordered blocks. The key is that, rather than permuting all identical objects freely, you treat the entire block of the first type as coming before the block of the second type, and count only the ways to assign positions to each block. This constraint removes the usual symmetry between the objects and turns the arrangement into a problem of choosing positions for each block, then permuting the remaining letters. This principle holds because the ordering condition eliminates all permutations that would otherwise mix the two types, so only the block-then-block arrangement is valid. The rest of the letters, unconstrained, are arranged as usual in the remaining positions.

Practise this question with written feedback, or hear it in a spoken mock interview.

Get started free