public class Practice {
    public static boolean canPlant(int prev, int curr, int next) {
        // TODO: return true only when this plot and both neighbors are empty (0).
        return false;
    }

    public static boolean canPlantAt(int[] bed, int i) {
        // TODO: treat a missing neighbor at either edge as 0, then use canPlant.
        return false;
    }
}
