Javascript Unique Array Of Objects Python Interview Programming