Bitonic subarray

are elements which are equal considered as a part of bitonic sequence…i.e. 2 3 4 2 1 is bitonic but what about 2 3 3 4 2 2 1(here two 3 and two 2 are considered as part of bitonic or not)

hello @kani001
image
as per definition