Write a subroutine in C# called analyzeHotspots that will count the number of hotspot symbols ('H') on a thermal sensor grid.
An example of the 2D array thermalGrid is shown in Figure 1.
Figure 1

The subroutine should:
thermalGrid of characters as a parameter'H' characters in the thermalGrid arrayCRITICAL OVERHEAT if there are eight or more 'H' symbols in the array'H' symbols if there are fewer than eight 'H' symbols in the array.You must write your own count routine and not use any built-in search or count functions that might be available in C#.
You should use meaningful variable name(s) and C# syntax in your answer.