Count and Rank Words in a Paragraph
Company: Robinhood
Role: Backend Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Quick Answer: Count case-insensitive ASCII words in a paragraph and return deterministic frequency rankings. Tokenize maximal letter runs, normalize to lowercase, sort by descending count then ascending word, and handle punctuation, repeated delimiters, empty input, and very large text in one scan.