you give positive integer array spell potion length n m respectively spellsi represent strength ith spell potionsj represent strength jth potionyou give integer success a spell potion pair consider successful product strength successreturn integer array pair length n pairsi number potion form successful pair ith spell Example 1input spell 513 potion 12345 success 7Output 403Explanation 0th spell 5 12345 510152025 4 pair successful 1st spell 1 12345 12345 0 pair successful 2nd spell 3 12345 3691215 3 pair successfulthus 403 returnedExample 2input spell 312 potion 858 success 16Output 202explanation 0th spell 3 858 241524 2 pair successful 1st spell 1 858 858 0 pair successful 2nd spell 2 858 161016 2 pair successful Thus 202 return Constraintsn spellslengthm potionslength1 n m 1051 spellsi potionsi 1051 success 1010