Curvature-Based Optimization Step - Coding problem | OneNoughtOne