Sharethrough Interview Question

Building basic scala program. Easier than leet code problems.