Quantexa interview question

why is functional programming useful?