Nascent Interview Question

Discrete math question.