Concatenate 3 strings with separator

Report a typo

Complete the function concatenate() that concatenates three strings into one using a special separator. If the separator is not specified, use a single space. This function must return the resulting string.

Example:

Input:

concatenate("Hyperskill", "Kotlin", "Programming", "~~~")

Output:

Hyperskill~~~Kotlin~~~Programming

Write a program in Kotlin
// complete this function
fun concatenate(){

}
___

Create a free account to access the full topic