Given two integers N and M representing rows and columns, generate a rectangular pattern. The outer boundary of the rectangle must be filled with the character 'X', while all interior positions must…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.