finished exercise 3-4; find the longest and shortest string