Company: Zscalar_9nov
Difficulty: medium
Encryption Validity Problem Description A hijacker is attempting to break into a system protected by encryption keys. The strength of this encryption is determined by the highest degree of divisibility among the elements in the key list. The degree of divisibility of a key is defined as the number of elements in the list (greater than 1) that divide it evenly. The higher this number, the stronger the encryption. For example, in the key list [2, 4, 8, 5, 2] , the element 4 has a degree of divisibility of 3 because three elements — 2 , 4 , and 2 — divide it evenly. The encryption strength is calculated as: encryption_strength = degree of divisibility × 10^5 This value represents the number of attempts a hijacker would need to crack the encryption. You are given a list of encryption keys, the hijacker's testing speed (in keys per second), and the validity period (in seconds). Using this information, determine whether the hijacker can break the encryption within the validity period, and re