Want a solution to this problem

,

Hi,

Here’s the link to the file:

https://1drv.ms/w/s!AsGUCa7VQH7cgQJfbIBDcgMt4s9h

Shared from Word for Android
https://office.com/getword

I also have a doubt about the answers given for test case(especially at k=3,279)

Flagged as duplicate. Hence, closed.