Here's your approach:
Read (total contestants) and (cutoff position).
Read all scores into an array.
Store the -th score as your threshold (careful: arrays are 0-indexed, so it's scores[k-1]).
Initialize a counter to zero.
Loop through each score and check: is it positive AND at least the threshold?
If both conditions are true, increment your counter. The approach is using && (AND) to combine conditions: score > 0 && score >= threshold. Both must be true for a contestant to advance.