Another Duplicate Counting

HihoCoder - 1783