Given a list of documents, find which ones contain a word — case-insensitively — and then which ones contain a whole phrase in order. Build the inverted index that makes repeated queries fast. Asked in Confluent phone screens and machine-coding rounds.