Append k element in the front

not passes all test cases

Hey
Can you post your code?

plz check my code and clear my doubt