What is the difference between purchasing and leasing? Provide an example

What is the difference between purchasing and leasing? Provide an example