Scienaptic Systems interview question

some basic programming on scala