getKthElement from last in linked list - edge case handled