Gateway Group (India) interview question

Basic oops, sql, html, programming logics