WD interview question

Diamond problem