George's submission of C2 - Successor (Slightly Harder Version) | CodeChef