Centric Consulting interview question

SQL Test with HackerRank