Solution of  https://www.hackerrank.com/challenges/pairs

Solution of https://www.hackerrank.com/challenges/pairs in Ruby