Not understanding how challenges work

Hello, thank for the help, however, that code was bases on the video I watched and I wanted to make this challenge again with my own knowledge and so I did my program again. It seems to work. However, I think my problem is that I do not understand how the challenges work. Like what are the test cases, where do I test them? When I submit the code, does it test them itself? Can you please help me again?