Help me in solving ADACRA problem

My issue



someone explain this statement
type or paste code here

My code

# cook your dish here

Problem Link: Ada and crayons Practice Coding Problem - CodeChef

Which exact statement you want to be explained ??
The question or The solution or anything else ?