Ugam interview question

related to sql, programing question