XRM Labs interview question

Basic dsa and sql questions