Samsung Electronics Interview Question

i was from cs branch and he asked me questions from flip flops, implementing encryption and decryption techniques .