P R O B L E M #2
You have four three-link pieces of chain. To open a link costs two cents; to close a link costs three cents. All links are closed. Your task is to join all pieces of chain together for no more than fifteen cents.