Evaluate a Piecewise Linear Function | Two Sigma Interview Question