first stepic quiz solved in Scala