Logan and his STRING dilemma | CodeChef