Jane Street interview question

brain teaser about 3 digit numbers, combinatorics