Before revision:  We solve this problem by conditioning and then using the theory of  reflected backward stochastic differential equations (RBSDEs).
After revision:  We solve this problem by conditioning and then using the theory of . The solution of this problem is characterized by a path dependent reflected backward stochastic differential equations (RBSDEs).