Add closest string problem implementation