consider the worst case all processes holding just one resource less than their completion(max need)
P1=2
P2=3
P3=4
TOTAL RESOURCE =9 now one more resource will ensure that any one of these process will execute and release all its resources
hence 9+1=10 resources will ensure there will not be deadlock hence ans is D