Getting tle in append k

for the append at k linked list problem only two test cases are getting passed getting TLE in rest plz suggest correction https://ide.codingblocks.com/s/368302

hello @coderajay03
check now->

okay I forgot that line k can be greater than N thankyou!