K-th Duplicate Element in an Array · 2daysbeforeinterview