Bloomberg interview question

By using HackeRank shared document, write a function that compare two software version number