added solution for Problem B. Many Prizes