I'm not a big fan of this one. I think "Como cheguei aqui?" more natural than "Como você chegou aqui?". I agree that it's not the literal translation, but I think it sounds more correct in the context.