Bug Report for https://neetcode.io/problems/top-k-elements-in-list
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
the value for input variable k is incorrect. for test case 1: expected k is 2 but printing it shows 3. for test case 2: expected k is 1, but printing shows 7.