Fathom interview question

Design question