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.
yeah that's the entire point of this kata
I had a solution where I used a for loop in a while loop, tried some test cases myself and it works, the only issue with this is that since the numbers can become very big in the end, the program ended up taking way too long to process since it has to generate a lot of numbers, so in the end, I cannot attempt it and submit the solution even though this code can work.