Answer:
Answered below.
Step-by-step explanation:
//Program is written in Kotlin programming language.
fun sameNumber(numWords: String, myWords: List<String>) : Boolean{
//Split words in phrase into list
val str: List<String> = numWords.split(" ")
//Convert to mutable list.
val phrase = str.toMutableList()
val words = myWords.toMutableList()
//Compare the number of items in each list.
if( phrase.size == words.size){
return true
}else{
return false
}
}