Contains Duplicate

Python3

You are given, 

  • nums, an array of integers.

Now, Complete the method containsDuplicate. It must return,

  • TRUE if there is any duplicate values in the given integer array nums

  • otherwise return FALSE

Your Logic: