Jane Street Interview Question

brain teaser about 3 digit numbers, combinatorics