Wish list

Report a typo

Imagine that you have a wish list. It's very long and you want all the listed items; however, you can't buy the items with the price greater than limit.

Write a function makeMyWishList that returns a map with all the elements with the price lower than or equal to limit.

Write a program in Kotlin
fun makeMyWishList(wishList: Map<String, Int>, limit: Int): MutableMap<String, Int> {
// write here
}
___

Create a free account to access the full topic