Given the numbers in an array and number signifies how many times a shopkeeper can sell in a particular city, and he shouldn’t visit the same cities on two consecutive days.
We need to find how many days the shopkeeper can sell his goods in different cities.