jab mein ismein if(sr<er) and if(sc<ec) yeh wli condition laga rha hun tab mera square 2d array ke liye pass nhi ho rha and rect ke liye ho jaa rha hai
but jab yeh if condition nhi laga rha , toh square ke liye ho rha hai and rectangle ke liye nhi ho rha