Write а C++ functiоn nаmed spаceTоHyphen that takes a character array (char[]) as its parameter. The functiоn should replace every space character (' ') in the array with a hyphen ('-'). The function should modify the original character array without creating a new one.Input: I hope you are doing good.Output: I-hope-you-are-doing-good.