Given two positive integers n and m, this code will create a two-dimensional array of size n×m and populate it with the characters “.” and “*” in a chequered pattern.