Driver Code
public static void main ( String [ ] args ) { int K = 2 ; int W = 0 ; int P [ ] = { 1 , 2 , 3 } ; int C [ ] = { 0 , 1 , 1 } ; System . out . println ( maximizedCapital ( K , W , P , C ) ) ; } }