Solution 1st prblem