Interview question from Palantir and Evernote.