Python Find And Replace First Occurrence Leetcode Two