BairesDev interview question

Logic/math based questions (non-programming related).