Function to find the maximum path sum from the top - left to the bottom right cell such that path contains one of the cells in the array coordinates [ ] [ ]
def maximumPathSum ( mat , n , m , q , coordinates ) : NEW_LINE