last, penultimate, nth, length, reverse and isPalindrome working