Worked out a solution to the classic reverse a string interview question that also includes type and length validation