nicht ganz dicht sein

listen to the pronunciation of nicht ganz dicht sein
Немецкий Язык - Английский Язык
to be off one's rocker
to be a headcase
not to be toilet-trained