CLORGIRD - EDITORIAL

Why is this solution giving a TLE ?
https://www.codechef.com/viewsolution/21622000

Being new to competitive programming my bigggest hint was that bruteforce is acceptable…
i just checked all possible 2x2 grids…instead of using another array for storing result i just replaced every ‘.’ in favourable grid with a ‘1’…then at last again i traversed the full grid to find if i encounter any ‘.’ if i do then “NO” else “YES”…
have a look…its very simple…
=============MY CODE======================
https://www.codechef.com/viewsolution/22081531

//