The solution to GCHQ's CanYouCrackIt stage 3 challenge (Code VM)