onsemi interview question

2. Latch and flop design using mux