Find Last element (Recursion)

I have opted a different approach.
It is passing two test cases but 1 fails.
Can you tell me the what is the problem.


this is your code and it is passing all testcase check again