adjacent products problem PE