Smallest Element in Rotated Duplicates Array - Coding problem | OneNoughtOne