Amazon Interview Question

Write a function that takes an input of a string and convert it to a an integer, convert the integer to its binary representation.