DSA Key Problems

Intersection of Two Arrays II

Given two integer arrays, return their intersection while preserving the minimum multiplicity of every common value, in any order.