At a time when many companies are rolling back flexible work arrangements and scrutinizing productivity, Duolingo's approach stands out.