Intuit interview question

Find duplicate number in a given array of objects, javascript promise, past projects