Amazon Interview Question

There was some question on Convex functions.