https://practice.geeksforgeeks.org/problems/count-squares3649/1