Solution to FCTRL2 in Python

4.5M, 0.13s