Capgemini Engineering interview question

difference between declarative and functional programming