you give integer array num length n integer array query length mReturn array answer length m answeri maximum size subsequence num sum element equal queriesiA subsequence array derive array delete element change order remain element Example 1input num 4521 query 31021output 234explanation we answer query follow the subsequence 21 sum equal 3 it prove 2 maximum size subsequence answer0 2 the subsequence 451 sum equal 10 it prove 3 maximum size subsequence answer1 3 the subsequence 4521 sum equal 21 it prove 4 maximum size subsequence answer2 4example 2input num 2345 query 1output 0explanation the subsequence subsequence sum equal 1 answer0 0 Constraintsn numslengthm querieslength1 n m 10001 numsi queriesi 106