Report question

Question: What is the correct approach to solve SPOJ DIEHARD?