HOTEL-what does the prob mean??

I’m unable to get the question as in what it wants??..unable to understand it
Here’s the link - http://www.codechef.com/problems/HOTEL

check the editorial here is the link http://discuss.codechef.com/problems/HOTEL