The conversation between human and AI assistant.
[|Human|] Given a string and two characters, Find the minimum distance between two given characters in the string.
[|AI|] The minimum distance between two given characters 'o' and 'l' in the string "Hello world" is 2.
[|Human|] 
Given a string and two characters, Find the minimum distance between two given characters in the string.