Lucid Software Interview Question

Two easy leetcode problem and one object design