Talentica interview question

Basics