My solutions for TuentiChallenge4 in Java