Amazon Interview Question

Word ladder and ite extension