A city has several different tax schemes. In each scheme, the taxpayer pays a percentage of his income plus a fixed base amount every year. Each citizen is free to choose an optimal tax scheme for his income after the end of each year.
You will be given two int[]s, fixedBase and percent (elements with equal indices describe the same tax scheme).
Given an index of a tax scheme, return the minimal nonnegative income this scheme is optimal for (choosing any other tax scheme results in a tax which is strictly greater). If this scheme is not optimal for any income, return 1.
