text: 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 [ ] [ ]
code: function maximumPathSum ( mat , n , m , q , coordinates ) {