Thoughtworks interview question

Two SQL Querys and one DSA program