Find a special connected block

CodeChef - CONNECT