Codewars Challenge (Decode the Morse code) - C++ part 1