Cerium Systems interview question

D flip flop and its working and basic gate coding's