Mountain Array Target Search - Coding problem | OneNoughtOne