Doubt in ex-1 . k<n or k>n?

How come we know that k<n. I assumed that k>n and found the ans as:
K + (K-1) + (K-2) + (K-3) + … + (K - (N-1)) .
Am I correct?