The second is not English sentence structure. The first unit of the verb phrase inverts with the subject in question construction. I would have done something / What would you have done?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.