I want to ask are double 'of's in a single sentence allowable or they should be avoided at all costs?

Would it be considered as a mistake or just as a bad style? Or is it not so bad?