The code would print
and then loop inifinitely.
During run time Sololearn redirects the output to a file. Normally when the program finishes, Sololearn displays the output file. But because your process has to be killed due to exceeding its time limit, the file is forced closed before the cached write occurs. So the output file is empty.