Amazon Interview Question

Questions about computing the distance between words