Sberbank interview question

Background