find continuous sequence add up to SUM