Worked with lattice path problem