rewrite leetcode combination sum i ii