Changed print_answer function to return nothing if n is greater than size of string