He tried to understand what 's going on with him .
He tried to understand what was going on with him .
He tried to understand what was going on with him .
Fix grammaticality: He tried to understand what 's going on with him . Output: