Pregunta de entrevista de Lucid Software

Two easy leetcode problem and one object design