IBM interview question

One SQL and one DS coding.