Find single element when others repeat k times | Molocoads Interview Question