Get M-th from end element