To make a system deadlock free, assign each process with one less then their max need. After doing so if we are left with one or more resources then there is no deadlock.
Assign 1 resource (max need -1) to each process.
allocated resources=1+1+1=3
we are still left with 1 resource to avoid deadlock.
so deadlock can never occur. Answer (A)