Pregunta de entrevista de Mark43

it was an easy leetcode question