Surya Informatics interview question

Oops concept , range, sql functions