I cant understand tha ques and not able to write a code

can you please help me to solve this and what approach we should apply

??? still no reply after 19 hours