Kǎoshì qián tā yǐjīng xīnlǐ-yǒushù, xiōngyǒuchéngzhú.
Before the exam she already had a clear picture in her mind and was fully confident.
Tips
memory
心里 (in the heart/mind) + 有数 (have a count / have numbers). Imagine having all the numbers tallied up in your head already. You know exactly how things stand.