Also reported as Inference Stop Token Detection
Microsoft phone-screen question, reconstructed from 3 candidate reports (January 2026 to February 2026). Candidates reported 2 follow-ups. The write-up includes a Python solution that passes 12 test cases.