Bash Split First Occurrence Leetcode Problems