Two Unique Elements

Given an integer array where exactly two elements appear once and every other element appears twice, find the two elements that appear only once. Return them in any order. The algorithm must run in linear time and use constant extra space.

Examples
Input: [1,2,1,3,2,5]
Output: [3,5]
Hints

Two Unique Elements

Given an integer array where exactly two elements appear once and every other element appears twice, find the two elements that appear only once. Return them in any order. The algorithm must run in linear time and use constant extra space.