Assume that b[] [] is a 2D array of characters of size NxN representing a chess board. Assume also that r and c are indices representing the position (row and column) of a rook (dali) on the chess board. Write a piece of code that prints "unsafe" if there is another rook in the same column or in the same row as the rook at b[r][c]. Your code must print "safe" otherwise. Assume that the board contains the character 'R' in a cell if there is a rook in that cell.