Glassdoor Interview Question

String to binary algorithm.