solution to tekos first problem