Site not saving code, sometimes shows code I didn't write

Hi, I was trying to do an exercise this morning in Intro To Programming - Caesar Cypher. Once I’d run my code, I briefly checked the solution and went back to my code, only to find nothing there. Now, several hours later, I’ve opened the exercise only to find the complete solution there, which I did not author.