aman agarwal's submission of Sed Max | CodeChef