Solve the following uniform distribution function?

How to solve this function with my example