Locate First Singular Character - Coding problem | OneNoughtOne