How to solve it when numbers are there please help

how to solve when numbers are there return 2d vector help

please elaborate this part

If you want to make subsequence of integer array, check this LINK