Pergunta de entrevista da empresa Capital One

Four input parameters: Barrel , Rupees , recycleReward, perksCost. Two options: ->Recycle a barrel and get recycleReward amount of rupees ->Combine one barrel and perks cost amount to get a perk item.