Annie racked her brains in vain.
Annie racked her brain.