Given a vector<int>, return a vector<vector<int>> where each element contains a value along with its frequency.
vector<int>
vector<vector<int>>