Hello I was wondering whether it is possible to achieve this result using VBA/UDF?

Basically what I wanted to do is to be able to concatenate various string from different cell and achieve the shown result without typing the concatenate formula over and over but only one function with VBA/UDF, so we can get different kind of result based on the chosen cells.
I've looked on ways on the internet by creating module but most of them is use range instead. Sorry if this is inappropriate question because I am not able to show what I have achieve as I am very new to Excel. Really appreciate your help!

Here comes a demostration snippet without any arguments validation.