Amazon Interview Question

Given two strings A and B, find the minimum cost to convert string A to string B. You can insert, delete or replace each constituting equal unit cost?