It should be mushkilatun and not mushkilatan, because this word is the subject.
It's not mushkilatan it must be mushkilton This Arabic course is full of mistakes!
No it is wrong. This word I mean "problem" in the Arabic language mushkilatan
_