What'd you do with my pen?

Literal

I [of-の] pen [topic-は] how did [question-の].

Another どうしたの usage — 'what did you do with [my pen]?' The topic-marked ペンは sets it up as the thing being asked about. Common when someone suspects another person of moving/taking their pen.