[Codechef] Stepford House Practice problem