Applied Materials interview question

Provided the diagonal matrix program with the issues and the perfect output. we need to solve this program.