Select interest thresholds under skewness and cost | Meta Interview Question