Create getPeakIndex.java