Solution to a HackerRank program You will be given a string. You need to Split the string on a " " (space) delimiter and join using a - hyphen. Here we use two python inbuilt function
1) split() : The split() method splits a string into a list. You can specify the separator, default separator is any whitespace.
2) join() : The join() method takes all items in an iterable and joins them into one string. A string must be specified as the separator.