Sorted Array Position Finder - Coding problem | OneNoughtOne