Apple interview question

FIR and IIR filter