there stone different position Xaxis you give integer array stone position stonescall stone endpoint stone small large position in pick endpoint stone unoccupied position long endpoint stonein particular stone stone 125 endpoint stone position 5 move position 0 3 stone endpoint stoneThe game end move ie stone consecutive positionsReturn integer array answer length 2 whereanswer0 minimum number move play andanswer1 maximum number move play Example 1input stone 749output 12explanation we 4 8 finish gameOr 9 5 4 6 move finish gameexample 2input stone 654310output 23explanation we 3 8 10 7 finish gameor 3 7 4 8 5 9 finish gameNotice 10 2 finish game illegal Constraints3 stoneslength 1041 stonesi 109All value stone unique