This is not a function. The input 7 in set A maps to outputs -1 and -3 at the same time in set B, which is why we don't have a function.
For a function to be possible, each input must map to exactly one output only.
4.7m questions
6.1m answers