Company: Amazon_18march
Difficulty: medium
Code Question 2 Amazon is managing multiple digital storage units, which can be accessed and modified by different employees. Unfortunately, a cybercriminal has breached the accounts of some employees, potentially tampering with each storage unit accessible by these compromised accounts. There are n employees, identified by numbers from 1 to n , and m storage units, identified by numbers from 1 to m . It is known that k storage units have been tampered with. Your goal is to determine which employee accounts have been assuredly compromised. You are given an array of k distinct integers, modifiedUnits , representing the IDs of the tampered storage units. Additionally, you are given an accessRights array, consisting of n binary strings, each of length m . In this array, the j th bit of the i th string is '1' if the i th employee has access to the j th storage unit. Identify and return a sorted list of employee IDs that have certainly been hacked. If no employees are definitively identifie