Bash Split First Occurrence Leetcode Playground C