Logic Programming Vs Functional Programming Examples