Bash Split First Occurrence Leetcode Playground Java