Solution for longest subword. Brrr