I do not understand how backtracking is working in this

I don’t understand how does it shift to the next case when one case fails.