IBM Interview Question

compare the given strings and join them in alphabetic order.