Find the least difference in occurrence of two numbers x and y in an array where both occur at least once.