Samsung Electronics interview question

Difference between latch and flip-flop