PDF of Maximum of Uniform Variables

How would you derive the Probability Density Function for Z=max(X,Y) given that X and Y are uniformly distributed over the interval (0,1)?

Answer Panel