P(s) ----------1
P(s) ----------2
<CS>
V(s) ----------3
V(s) ----------4
initially , S = 2
P1 execute (1) and s become 1 and then P2 will come and execute (1) and s become 0 . Now P1 try to execute step (2) but get suspended and now if any process will come that will also get suspended. No process will complete their execution and the condition of deadlock will arise.
option D is correct option