Prove the Extreme-Value Theorem.

Problem: 

Prove the Extreme-Value Theorem.

Answer: