Ambarella Interview Question

How to solve CDC problems