Pharos Solutions interview question

Assessment had 2 questions an SQL one and a Problem Solving one.