Smallest Covering Substring - Coding problem | OneNoughtOne