Careercup Hackerrank solutions