Pregunta de entrevista de Roblox

Some dynamic programming question and a sliding door problem