programming practice for kth kattis exercises