Then you can read "it's twice squared" as (the first use of twice) + ("twice squared")
The 'it' reference can change. The first 'it' is referencing the difficulty. The second 'it' is referencing the first 'twice', creating the option that 'it' is further "twice squared". Not the most elegant interpretation but a possible interpretation.
Learning to avoiding this vague language is why math majors should still take the occasional poetry class.