If anyone is confused with this answer, know that there are two versions of Manchester encoding, the one in the answer is Manchester by G. E. Thomas, and the other one is Manchester as per IEEE 802.3, which is the opposite of the one in the answer, i.e. Logic 0 means a 1 to 0 transition and logic 1 means a 0 to 1 transition.