find nth from last, iterative