Tutorial for Paying Up | CodeChef