why this top down method is not applicable on duplicates values
hello @n.nishchaya2000
i think it wil work. do u have any case where it fails?