B. Square Filling time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given two matrices ? and ?. Each matrix contains exactly ? rows an……