With all the different cell phone plans being offered these days, it is often difficult to pick the one that provides the best values for a particular usage pattern. In this problem, we will consider cell phone plans that provide a fixed number of minutes each month for a certain fee. If you go over the fixed number of minutes, you must pay an additional fee per minute. Additionally, some plans offer free off hour (night and weekend) calls, while other plans treat off hour calls the same as peak hour calls. If a plan offers free off hour calling, then the calls made during off hours don't use up the fixed number of minutes you get each month.
You will be given a String[], plans, each element of which represents a cell phone plan. Each plan will be formatted as "<PRICE> <MINUTES> <COST PER MINUTE> <OFF>" (quotes and angle brackets for clarity only). <PRICE> will be an integer representing the number of cents per month that one must pay for the plan. <MINUTES> will represent the number of free minutes the plan provides, per month. <COST PER MINUTE> will represent the price in cents of each additional minute in a month, beyond the first <MINUTES>. <OFF> will be either 'T' or 'F', representing whether off hour calls are free ('T') or not ('F'). Additionally, you will be given two int[]s. peakMinutes will represent the number of minutes spent talking during peak hours, while offMinutes will represent the number of minutes spent talking during off hours. Corresponding elements of peakMinutes and offMinutes will represent a single month of use.