Update Subsets II by Yan Zhao [loop].java