Morgan Stanley Interview Question

Scala exercises, pattern matching, case classes