Part1 Solution