Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
You are correct that this solution would throw an exception if an id was passed in that was not a valid planet id (like 13, since there are not 13 planets), but the description does not state what should happen in such a case and there are no test cases for such a case that I am seeing. It may be considered good practice to throw a clearer exception with a message stating what is wrong instead of just letting C# throw an out of bounds error for me, but I tend to prefer shorter solutions and definitely think throwing an exception for invalid inputs is generally appropriate.