The answer should be option D i.e S2 only, since the correct state transition for TCP after receiving close command from application layer would be
to send FIN and move to FIN-WAIT-1 state
on receiving ACK from server, move to FIN-WAIT-2 state
on receiving FIN from server, move to TIME-WAIT state.
on timeout move to CLOSED state