Fork Copy #include using namespace std; int a[7]; int n; int e; int maxM; void swap(int arr[], int x, int y){ int tmp = arr[x]; arr[x]=arr[y]; arr[y]=tmp; } int calculate(){ int sum=0; for (int i=0;imaxM) maxM=money; if (left == 1){ swap(a, n-2, n-1); } return; } // printArray(); if (step == e){ int money = calculate(); if (money>maxM) maxM=money; return; } for (int i=x;i>T; for (int tc=1;tc<=T;tc++){ cout<<"Case #"<>tmp; n=0; while (tmp[n]!='\0'){ a[n]=tmp[n]-'0'; n++; } cin>>e; maxM = 0; Try(0, 0); cout<