Problem: Complete the function which converts a binary number (given as a string) to a decimal number. Solution