Peak Index in a Mountain Array — CaffeCode