Hard
Given a rows-of-characters binary matrix grid filled with '0' and '1', find the largest rectangle containing only '1's and return its area.
Input: matrix = ["10100","10111","11111","10010"] Output: 6
Input: matrix = ["0"] Output: 0
Input: matrix = ["1"] Output: 1