Build DiD dataset with SQL | Meta Interview Question