Bash Split First Occurrence Leetcode Contest Solutions