Ginesys interview question

Normal question related to RDBMS and logic building