Answer of part (a):
As a matter of first importance we see that Carlos and Diana can't be both lying. On the off chance that Carlos is lying, at that point Diana would come clean, and if Carlos is coming clean, at that point Diana would lie. So it is either Carlos or Diana who is coming clean. John is lying, and John said "I didn't do it" Therefore John had the unapproved access.
Answer of part (b):
Again we see that Carlos and Diana can't be both coming clean, so the liar is either Carlos or Diana. This implies Alice is coming clean. Alice stated: "Carlos did it"Therefore it was Carlos who had the unapproved get to.