* Subject: "A solution" - This is the noun phrase that performs the action.
* Verb: "popped" - This is the action verb that describes what the solution did.
The phrase "to problem" acts as a prepositional phrase modifying "solution." "Suddenly" is an adverb modifying the verb "popped." "Into my head" is another prepositional phrase.