you long flowerbe plot plant however flower plant adjacent plotsGiven integer array flowerbe contain 0s 1s 0 mean 1 mean integer n return n new flower plant flowerbe violating noadjacentflower rule Example 1input flowerbe 10001 n 1output trueExample 2input flowerbe 10001 n 2output false Constraints1 flowerbedlength 2 104flowerbedi 0 1there adjacent flower flowerbed0 n flowerbedlength