问题has several meanings:
It could mean question/problem, for example:
提出问题(ask questions)/解决问题(solve the problem)。
If the question is difficult to answer,or the problem is difficult to solve, we call call it难题(难回答的问题/难解决的问题),you can say提出难题/解决难题,For example:
昨天老师出的那条难题你有答案了么?Do you have the answer to the difficult question that teacher released yesterday?
他们面临资金短缺的难题(They are facing the tough problem of capital shortage)
And 难题is always used after the verb出/提出,that is 出难题/提出难题
你总是给我出难题You alway give me big nuts to crack.
And another meaning of 问题is trouble/wrong, it is usually used in the phrase出问题,
我的电脑出问题啦(There is something wrong with my computer)
But we never say我的电脑出难题啦even if there are big bugs or damages with the computer.
And 问题could also mean"the key point/the cause", for example
他总是输,问题就在于他没有信心(He always loses, the problem lies in that he doesn't have confidence)and难题can not be used here.