optimise way to iterate lleft and right in array simultaneously code example
Example: for loop in java as long as array
for(i = 0; i < arrayName.length; i++{
//print statement will output current index's value
System.out.println(arrayName[i]);
}