Moody's Interview Question

question based on sql and project discussion