Contains Duplicate

Python3

Complete the method containsDuplicate to return TRUE if there is any duplicate values in the given integer array nums otherwise return FALSE

Your Logic: