DIAM Interview Question

Please see the answer above