Code to solve https://code.google.com/codejam/contest/5214486/dashboard