Linking one pegs rotation to another but the opposite direction.

Does anyone have an idea how to do this simply?

Thank for any suggestions