Number of pairs in list

Sign in to test your solution.