Company: Wells_Fargo
Difficulty: medium
Negative Temperature Storage Problem Problem Description A cold storage company has N storage units for various products. The company has received N orders that must be preserved at negative temperatures. The manager wants to identify which products must be preserved at negative temperatures. Input: The input consists of a single line. The first integer is numOfProducts (N), followed by N integers representing temperature[i] for each product. Output: The number of products that must be preserved at negative temperatures. Examples Example 1: Input: 7 9 -3 8 -6 7 8 10 Output: 2 Explanation: The temperatures provided are 9, -3, 8, -6, 7, 8, 10. Among these, -3 and -6 are negative temperatures. Thus, 2 products must be preserved at negative temperatures. Constraints 0 ≤ numOfProducts ≤ 1e6 -1e6 ≤ temperature[i] ≤ 1e6