Pregunta de entrevista de ByteDance

Stack, modified binary search, ...