Infosys Interview Question

Sql related query is average