Pregunta de entrevista de Upstart

Leetcode medium and easy medium questions.