added a second solution to the comparing integers without comparison problem