Nascent interview question

Discrete math question.