Solution to Problem1