Slove a malware challenge
Write s python program to do this task: Your company is analyzing malware which targets numerical record files. The malware uses a sliding window over the array of numbers in a file, and tries to match the following | T1, -, -, X, -, -, Tr The entire window is moved so that 'X' passes through all the values and is compared to the numbers at and 'Tr' locations, which are positioned at a constant offset to 'X'. The malware has the following rules: ā¢ If the value at the 'TI' or 'Tr' position of the pattern is bigger or equal to the value at the 'X' position, th malware replaces the value at 'X' with 0. ā¢ If the value at the 'TI' or 'Tr' offset is out of bounds, then the value at 'X' is only compared to the other existing value. ā¢ The record is processed in two stages: first, all the positions that should be set to 0 are located, usin original values for comparison. Only after all positions have been identified do they get set to 0. For example, if the values in a record file are the following: [1, 2, 0, 5, 0, 2,