Quantexa interview question

Scala coding question