Update Subsets II by Kang Huang [loop].java