The sufficient condition for ensuring that deadlock doesn't occur:
Si <n+m
where Si = Total request resource of ith process
n = Total number of process
m = Total number of resource
if above condition is false then DL may occur, if the condition is true then-No DL.
for the above problem, total demand is: 3+4+6=13
13<3+m
10<m, the minimum value of m that ensure deadlock is never occurring is 11.