Adding comment to Scala solution of Problem 1