Answer:
The man leaned against the building wearing a bandanna.
Misplaced modifier: wearing a bandanna.
Should follow: man.
Step-by-step explanation:
"Wearing a bandanna" is a modifier. It modifies "the man", since it points out an aspect of his looks when he leaned against the building. That modifier is misplaced, since the way it appears in the sentence could cause ambiguity: as odd as it seems, "The man leaned against the building wearing a bandanna" might lead the reader to think whoever wrote the sentence meant it was the building, not the man, who was wearing a bandanna. Therefore, a few ways to revise it would be:
Wearing a bandanna, the man leaned against the building.
The man wearing a bandanna leaned against the building.
The man, who was wearing a bandanna, leaned against the building.