Sharethrough interview question

Building basic scala program. Easier than leet code problems.