iCIMS Interview Question

Write a method to compare two version strings such as 1.02.004