Count Words in Lexicographic Order
Company: Upstart
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Take-home Project
Quick Answer: Count repeated lowercase words and return the distinct words with their frequencies in lexicographic order. Preserve the input while analyzing large collections, many duplicates, time and space costs, streaming limits, locale-aware ordering, and frequency-based extensions.