Who was the last President that wasn’t a Republican or Democrat?

History Trivia Question: Who was the last President that wasn’t a Republican or Democrat?