[google] program to find smallest substring which contains all chars of a string