Software Engineer - Remote
Get numbers from the given string, and format them following the rules below:
input: "a1bc23456"
output : "123-456"input: "a1bc234"
output : "12-34"input: "a1bc23defg4567"
output : "123-45-67"If there is a similar question on leetcode, please feel free to post it below.