A test case is not passing

hello @we_kaash

value of k can be greater than n so in that case ur code might fail .
handel it