Pregunta de entrevista de TikTok

two pointers question and stack question