EYGBS (India) interview question

Basic dbms question and coding