Value at Rank K When Repeats Are Counted

Company: Tredence_IITH_12oct

Difficulty: easy