Combination

Report a typo

You are given a Set and a MutableList of strings as input. Combine them into a MutableSet and return the result.

Sample Input 1:

A B C
A B B D C

Sample Output 1:

A B C D
Write a program in Kotlin
fun solution(setSource: Set<String>, listSource: MutableList<String>): MutableSet<String> {
// put your code here
}
___

Create a free account to access the full topic