Kth Element from the last

Here’s my code - https://ide.codingblocks.com/s/410574

Why all the test cases are getting failed?
Please help me out. Thanks in advance.

Thanks for helping me out!

1 Like