Count Steps in Matrix | CodeChef