Optimal String Edit Metric - Coding problem | OneNoughtOne