Due to the accusative and nominative aspect of german language the sentence word order can be made in this manner and still be same
"Das Mädchen hat den Apfel" ="Den Apfel hat das Mädchen."
But my question is why is das used and not die which is the feminine form?