Solve a constrained problem using KKT conditions | Imc Interview Question