The second example is wrong.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
BeataK believe that if it was a question the correct order should be "What are you doing?," but it is not a question.You are right.