Pregunta de entrevista de DraftKings

Coding questions, with medium difficulty