Pregunta de entrevista de Roblox

was asked DP, 2d array, and a string problem