Solution for day 7