I'm trying to complete the Hackerrank Sales by Match problem:
www [dot] hackerrank [dot] com/challenges/sock-merchant/problem?isFullScreen=true

My method is meant to just look for duplicates,...