_Sam's submission of Useful Number | CodeChef