Locate Local Maximum - Coding problem | OneNoughtOne