Index at which atleast required point are inside square of length 2 * M
int index = ( int ) ( Math . floor ( n / 2 ) - 1 ) ; System . out . println ( " Minimum ▁ M ▁ required ▁ is : ▁ " + a [ index ] ) ; }