Our satellite caught a signal from space. It is an array of strings but we can't read the messages because there are too many disturbances in the form of ~ symbols. Your task is to implement a method that takes an array of strings as a parameter, removes the ~ symbol from each string, and returns the result.
Sample input 1:
4~ 8~ ~~15~ 16~ 2~~3 ~~4~~*~
Sample output 1:
4 8 15 16 23 4*
Sample input 2:
~H~ow d~~if~fic~~ul~~t~ i~~t ~is~ to ma~~ke p~opco~rn in ~ze~ro gr~av~it~y.
Sample output 2:
How difficult it is to make popcorn in zero gravity.