TikTok interview question

Strings, 2D arrays, Chars, for loops