Hackerrank Between Two Sets Solutions