Bash Split First Occurrence Leetcode Two Pointer