Well...I prefer..'Try to think what the rule is for putting...'
However, 'Try to think what is the rule....' might be OK, too, I suppose.
I've heard a native speaker say...
'Tell me what's the matter.' instead of 'Tell me what the matter is.'
I'm not a native speaker of English.
Please forgive me if I'm wrong.
Student or Learner