Help me in solving PPREPCS26 problem

My issue

I can’t understand from the above content, Give simple understandable content

My code

8358

Learning course: 212CSE2305: Database Management Systems
Problem Link: https://www.codechef.com/learn/course/kl-dbms-cs-2024/KLDBMS2403/problems/PPREPCS26