you give 2D integer array stockprice stockpricesi dayi pricei indicate price stock day dayi pricei a line chart create array plot point XY plane Xaxis represent day Yaxis represent price connect adjacent point one example show belowreturn minimum number line need represent line chart example 1input stockprice 1726354454637281output 3explanationthe diagram represent input Xaxis represent day Yaxis represent pricethe follow 3 line draw represent line chart line 1 red 17 44 pass 17 26 35 44 line 2 blue 44 54 line 3 green 54 81 pass 54 63 72 81it show possible represent line chart 3 linesexample 2input stockprice 34127823output 1explanationas show diagram line chart represent single line Constraints1 stockPriceslength 105stockpricesilength 21 dayi pricei 109all dayi distinct