Comfortable Workshop
New employee A from company H has decided to go hiking with their colleagues during a workshop. The mountain they plan to hike is represented as an N×N grid, where each cell contains a number indicating its height. A wants to respect the opinions of their colleagues and find the most comfortable hiking trail.