Microsoft Interview Question

Navigating through a matrix of 0s and 1s, Dynamic programming