Find the Soldier\'s ID at Kth Position

Company: Barclays

Difficulty: medium