Arjun P's submission of Paying optimally | CodeChef