Try letting the pdf be a cubic in x, with roots at x=0 and x=3, and a local maximum at x=1. Then normalise so that the integral from 0 to 3 is equal to 1.

Then so long as the third root is not in the open interval (0,3) you have a pdf satisfying the given conditions, and from that you should be able to find the cdf.

CB