Median String Problem

Solution to Stepic Textbook Problem 3B: Median String Problem