Karan Aggarwal's submission of Dynamic Inversion | CodeChef