String similarity hackerrank solution

Print it