The problem has different meanings for k when we go through the whole question
Problem Link: WEEDING Problem - CodeChef