Counting Coins

Use this code to solve the money problems: Q= quarter, D= dime, N= nickel, P= penny