You are given an array `matchsticks` where `matchsticks[i]` is the length of the i-th matchstick. Use **every** matchstick exactly once to form a square (you may not break any).
Return `true` if you can form a square, otherwise `false`.
Example 1
Input:matchsticks = [1,1,2,2,2]
Output:true
Explanation:Square with side 2: (2),(2),(2),(1,1).