RainSweet Interview Question

Sort for rotten fruit