Rev interview question

Write an algorithm that determines if a string is a haiku