Change in internal energy for isothermal process
It must not be an ideal gas.  This is irrespective or whether the process is reversible or irreversible.   That is the only possible conclusion.  Otherwise the amount of heat received would adjust  until it was equal to the work done.