two phase protocol(growing and shrinking) is not free from deadlock that's why we use tree based or graph based protocol. It ensures the serializability by maintaining the order of lock point(last point where transaction acquire the lock in a given schedule)
so ans should be (A)