Leetcode Similar Strings Hackerrank Solution Cpp Dates 2024