careercup 4.1 +non-recursive way