https://www.codechef.com/LRNDSA04/problems/QHOUSE

Im getting WA: CodeChef: Practical coding for everyone
I cant see where I’m going wrong. Can someone please help

problem link: CodeChef: Practical coding for everyone