You're right, it's not a Perl problem. Don't worry about the implementation of the solution, think about the algorithm of the solution. Say your teacher handed you a list of version numbers... how would you determine whether or not one fell within the minimum and maximum?