Codeforces-1097B-Petr and a Combination Lock

I’m was going through this code-https://codeforces.com/problemset/submission/1097/48381688
for the problem-https://codeforces.com/problemset/problem/1097/B

I’m not able to understand line 7 of this code.
if you can explain it.