Amazon Interview Question

optimization methods for ML