New List

Report a typo

You are given a List of integers and an Integer in the input. Add the given Integer to the List and return the result.

Sample Input 1:

8 11 13 14
1

Sample Output 1:

8 11 13 14 1
Write a program in Kotlin
fun solution(numbers: List<Int>, number: Int): MutableList<Int> {
// put your code here
}
___

Create a free account to access the full topic