In this activity, you're going to be writing a function that checks whether the array it's given contains any repeated elements.
- Inside
challenge-prompt.jsthere will be two prompts asking you to solve this problem in different time complexities.- Complete the functions in the time complexities asked.'