Ways to reach the bottom-right corner of a matrix with exactly `k` turns allowed
Given an M × N matrix, count the number of different ways to reach the bottom-right corner of a matrix from its top-left corner with exactly k turn allowed and using only the directions right and down.