Bloomberg Interview Question

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