scala interview tasks