Existence and Uniqueness of Solutions for a Class of Non-Autonomous Dirichlet Problems