The correct answer is A) when it has reached the same temperature as the room temperature air.
Heat transfer occurs between two objects (in this case, the coffee and the air) until they reach thermal equilibrium, meaning they have the same temperature. At that point, there is no longer a temperature difference to drive heat transfer, and thus the cup of hot coffee would stop transferring heat.