program for penultimate and longest word