First element occurring k times in an array#802

First element occurring k times in an array (Discussion)