Hackerrank Java Certificate Solutions