problem 22: range