special array in ascending order.maxConsecutive to 0, which will hold the maximum number of consecutive floors without a special floor.maxConsecutive if it's greater than the current value.special array starting from the second element.
maxConsecutive if the calculated difference is greater than the current value.maxConsecutive if it's greater.maxConsecutive as the result.