[task] Add test case for calculating max sub sequence