Applied Materials Interview Question

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