The secret is inside the spell?

Report a typo

Harry Potter is trying to solve a challenge to open a door in Azkaban. He must discover the secret spell combination that is hidden in the spell book. To do this, he must order the spells: the list of spells must be arranged according to the first letter in descending order.
What is the list of spells needed to open the door?

Sample Input 1:

Expecto Patronum Alohomora Expelliarmus Lumos

Sample Output 1:

[Patronum, Lumos, Expelliarmus, Expecto, Alohomora]
Write a program in Kotlin
/* Do not change code below */
fun main() {
val list = readln().split(" ")
// write your code here
val res =


println(res)
}
___

Create a free account to access the full topic