Bash Split First Occurrence Leetcode Two Pointers