committing a solution for loney-integer