Panacea Infotech interview question

questions related to MySql queries, pattern program