Amazon Interview Question

Find the minimum cost path from root to leaf