Geotab interview question

OOP, testing string in c#