Problem 50
Problem 51
Problem 52
Fixed 50 to reject empty string
More comprehensive TM description for problems 50-52