https://mysteryweevil.medium.com/solving-the-return-the-next-number-java-programming-problem-f98cc75fe95c