Implement Jackknife and Random Choice | Pinterest Interview Question