Altimetrik interview question

scala