Pregunta de entrevista de TikTok

Two leetcode hard problem and two medimum problem