DIAM interview question

Please see the answer above