
Three Views

The volume of an object almost derived from three views.
You are given three views (front, right side, top) as input values. Each of these is a string consisting of A to Y. These letters assigned row-major order in a 5x5 grid.
You have to return the total volume of the object.
NOTE:- The answer is maximum possible value.
Examples:
assert three_views('BCDGHILMNQRSVWX', 'CHMRW', 'LMN') == 15 assert three_views('GHILMNQRS', 'GHILMNQRS', 'GHILMNQRS', ) == 27
Input: The three views (front, right-side, top) (3 strings)
Output: The total volume of objects (An integer)