What is wrong with this sentence "Patty potted Peter Pipers pickled peppers.

First of all there should be an apostrophe after the r

in Piper. Like this, Piper's. Second, you forgot the ending quotation marks at the end. You also forgot a question mark at the would- be outside of the ending quotation mark.