It's apocryphal at best. The guy was rejected by Google, but was never asked about inverting binary trees, like he claimed.
(I can believe that he was rejected on some other technical trivia, no clue. But the 'invert a binary tree' thing never happened.)