Pergunta de entrevista da empresa Lockheed Martin

They asked a vague discrete math question.