Can you wrap your code in codeblocks (by using 3x backticks before and after the code) for easier readability?
Make sure your code has no infinite loop. The error message states that the test timed out which can either be due to a infinite loop or because the server is overworked.
To resolve the issue: remove the infinite loop or wait a few minutes and try again