The correct option is D 18:00
From the view of the window, we can make out that it is dark oustide and hence it is either evening or night. So we need to use PM.
So in option A, even though the time is right, since they have given AM, it is wrong.
In option B also the time given is right, but in a 24 hour clock we do not need to write AM or PM, and since AM is given here, it is clearly wrong.
The minute hand is pointing towards 12 and the hour hand at 6, which means it is 6 o'clock.
So in option C, the time given is wrong.
Finally in option D, we have the right answer which is 18:00