Pregunta de entrevista de Mastercard

standard medium leetcode questions, practice foundations