Salesforce Interview Question

A puzzle to solve maze