Rev Interview Question

Write an algorithm that determines if a string is a haiku