Personal Capital Interview Question

coderpad: Leetcode problem - shortest distance to string