Sub-K interview question

Pyramid program,sql queries, overloading and overriding