HCLTech interview question

Two Coding Questions. some SQL Questions