Whenever you're ready, walk me through how you'd approach this.
Given a very large (1 TB) file, how would you check whether a virus string occurs (e.g. 100 times) so the file can be flagged or deleted?
Asked in the hiring manager round stage. Candidate chunked the file; interviewer pushed on pattern overlap at chunk boundaries and early exit. Reported follow-ups: How do you handle matches that overlap chunk boundaries?