Avi's submission of Substring Query | CodeChef