Gust interview question

data challenge using postgresql