#Leetcode Practice using Ruby.
list = list.sort #sort list
list1.concat list2 #merge list without another set of brackets.
var.each { |i|
p i
}
Input: ["h","e","l","l","o"]
Output: ["o","l","l","e","h"]
def reverse_string(s)
f = s.reverse!
p f
end