The Longest and Largest Sudoku Solution
Rules:
Follow standard Sudoku rules.
The hints outside the board indicate the summation value of the longest increasing or decreasing sequence in each row or column.
If there are multiple sequences with the same length, the hint indicates the one with the largest sum.
In other words, prioritize length first, then sum.