Indexes

Report a typo

In the input, you are given a List of products that you put on the shelf and a String that represents a specific product. Print out this product's position on the shelf. Note that products may repeat.

Sample Input 1:

Mustard Cheese Eggs Cola Eggs 
Eggs

Sample Output 1:

2 4
Write a program in Kotlin
fun solution(products: List<String>, product: String) {
// put your code here
}
___

Create a free account to access the full topic