Add solution for Advanced part 2