Divide Array Into Equal Pairs

Given an integer array nums with length 2 * n, determine if it can be divided into n pairs where each pair contains two equal elements. Return true if possible, false otherwise.

Examples
Input: [3,2,3,2,2,2]
Output: true
Hints

Divide Array Into Equal Pairs

Given an integer array nums with length 2 * n, determine if it can be divided into n pairs where each pair contains two equal elements. Return true if possible, false otherwise.