Pergunta de entrevista da empresa TikTok

I got 4 questions. One was an easy string/array, the second was a sliding window problem, third was matrix, and 4th was a two pointer sort problem.