diploma find_longest.cpp