Single-use Attack CodeChef Solution