Help me in solving HTML54 problem

My issue

The color for the paragraph 1 in section1 is blue. Whereas class selector has more specificity than the type selector. Therefore it should be red.

My code

p {
    color: blue;
}

.section1 {
    color:red;
}
#paragraph2{
color: green;
}

Learning course: Learn HTML / CSS
Problem Link: CSS Selector specificity Practice Problem in HTML / CSS - CodeChef