Scienaptic Systems Interview Question

some basic programming on scala