Getting Time Limit Exceeded

The complexity of my code is O(n * k) Is there any better than this ?

O(n*k) should not give TLE according to given constraints

please share the link of code

paste you code at

click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793