Maximum number, GCD condition | CodeChef