Completed reverseFirstK