挖空心思

wā kōng xīn si

to dig for thoughts (idiom); to search everything for an answer

to rack one's brains

挖

wā

to dig

空

kōng

empty

心

xīn

heart

思

si

to think