Add solution to board-cutting.

Find answer from Editorial.