Altisource interview question

Difficult puzzle question

Glassdoor | Glassdoor