Write down the C++ function which will accept the character array of at most 30 cells. Your function must return true if string and its reverse are identical; otherwise function must return false. For instance, string MADAM reads from left to right as from right to left.