A school server was hacked. The headmaster suspects five friends based on the fact that they were really good such knowledge. He calls all of them in his room and the five students give the following statements:

Peter:
1. I did not do it.
2. I have never hacked in my entire life.
3. Christy did it.

Jamie
1. I did not do it.
2. The hack was done from within the network.
3. I do not like Misty.

Casey
1. I did not do it.
2. I have never seen Misty in my life.
3. Christy did it.

Christy
1. I did not do it.
2. Misty did it.
3. Peter was lying when he said I did it.

Misty
1. I did not do it.
2. Jamie did it.
3. Casey and I used to be friends.

Now, you know that out of the three statements, every student has speaker two truths and one lie. Reading all these statements, can you identify who hacked the server?

Jamie hacked the server.

Let us assume that Peter is a hacker. If so, his first statement is false and also the third statement is false. But as per the condition, he cant speak more than one lie. The same goes for Casey, Christy and Misty.

If you assume the same for Jamie however, the condition stands true.