Given an integer array nums and an integer k, return the k most frequent elements. The answer may be returned in any order.
Click Run to execute sample tests.