Alex's submission of Hack it | CodeChef