Begin with a six membered, saturated ring containing, in sequence, carbon-carbon-nitrogen-carbon-carbon-oxygen; label these positions as C1, C2, N3, C4, C5, and O6, closing the ring between C1 and O6, and attach a methyl group to C1 and another to C5.
The ring nitrogen (N3) bears a methylene linker that leads to a second six membered saturated ring (piperidine), such that the point of attachment on the piperidine is para to its ring nitrogen. On this piperidine nitrogen, place an carbonyl group (-C(=O)-) whose carbon continues as a two-carbon chain ending in a five-membered ring containing two adjacent nitrogens (a pyrazole ring). One of these nitrogens bears a methyl substituent; label this pyrazole ring so that the methyl-bearing nitrogen is N1', followed by N2', C3', C4', and C5', with the two-carbon chain attached at C4' and C5' also methylated.