uva 10703 solution