Little more and little less

Report a typo

You are given an empty Set and a Set of strings as input. Iterate through the non-empty Set, add all elements that start with A or a to the first Set, and return it as the result.

Write a program in Kotlin
fun solution(newSet: MutableSet<String>, oldSet: Set<String>): MutableSet<String> {
// write here
}
___

Create a free account to access the full topic