apple pie's submission of Drunk Alcoholic | CodeChef