Help me in solving HTML24 problem

My issue

Explain the approach

My code

// your code goes here

Learning course: Learn HTML / CSS
Problem Link: CodeChef: Practical coding for everyone