I have seen the following sentence:
They gave me a question too hard to answer.
However, in my opinion, this use of active infinitive is ungrammatical here, and the following passive Infinitive should be used here:
They gave me a question too hard to be answered.
I wonder which structure is more suitable for formal writing in case both structures are grammatically correct.