IQVIA Interview Question

React life cycle, componentdidUpdate usuage testcases for react removing duplicates in array.