On a Class of Nonautonomous Max-Type Difference Equations