Ambarella interview question

How to solve CDC problems