How to reset Mega 2560 R3

Yes, unless you had a second Arduino and connected them together in such a way that one programmed the other.