A generalized backward scheme for solving nonmonotonic stochastic recursions